libxl: Compilation and other small fixes
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 May 2010 07:20:46 +0000 (08:20 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 May 2010 07:20:46 +0000 (08:20 +0100)
commit7e62eca7a19e2c2e9c8e64af318750415636c1b8
tree6f25bbf186d679562b99c817ba1421c8c92cde53
parent4d8af8596635a01186ed762aa6c47d81e5cd867e
libxl: Compilation and other small fixes

* Some of the library functions such as fscanf, system, and asprintf
are declared with warn_unused_result (ubuntu server 9.10), causing
compilation errors in libxl.
* When using asprintf, the caller is responsible for freeing the
memory.
* memset takes wrong size argument in one of the places (caught by
a builtin gcc check).

Signed-off-by: Dulloor Rao <dulloor@gmail.com>
tools/libxl/libxl.c
tools/libxl/xl_cmdimpl.c